package cn.bsb.service.rece;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;

import cn.bsb.dao.thematicMapper;
import cn.bsb.pojo.Thematic;

@Service("ThematicService")
public class ThematicService extends BaseService<Thematic> {
  @Resource
  private thematicMapper thematicMapper;
  /**
   * 查询所有专题分页
   * @return
   */
  public PageInfo<Thematic> getThematicListByPage(Integer pageNum,Integer pagesize){
	  
	  PageInfo<Thematic> page=selectPage(null, pageNum, pagesize);
	  return page;
  }
  /**
   * 查询部分专题
   * @return
   */
  public List<Thematic> getThematic(){
	  List<Thematic> list=selectPage(null, 1, 6).getList();
	  return list;
  }
  /**
   * 查询所有专题
   * @return
   */
  public List<Thematic> getThematicList(){
	  
	  List<Thematic> list=selectList(null);
	  return list;
  }
}
